package com.neusoft.dibuy.interceptor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

public class MyIpCounterMvcConfig   implements WebMvcConfigurer {

    @Autowired
    private IpCounterInterceptor ipCounterInterceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(ipCounterInterceptor).addPathPatterns("/**").excludePathPatterns("/hello/a/b");
    }


}
